package com.muyu.danmo.service.impl;


import com.muyu.danmo.domain.DanmoGalleryInterior;
import com.muyu.danmo.mapper.DanmoGalleryInteriorMapper;
import com.muyu.danmo.service.IDanmoGalleryInteriorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 画廊内景Service业务层处理
 *
 * @author yangle
 * @date 2024-10-23
 */
@Service
public class DanmoGalleryInteriorServiceImpl implements IDanmoGalleryInteriorService
{
    @Autowired
    private DanmoGalleryInteriorMapper danmoGalleryInteriorMapper;

    /**
     * 查询画廊内景
     *
     * @param id 画廊内景主键
     * @return 画廊内景
     */
    @Override
    public DanmoGalleryInterior selectDanmoGalleryInteriorById(Long id)
    {
        return danmoGalleryInteriorMapper.selectDanmoGalleryInteriorById(id);
    }

    /**
     * 查询画廊内景列表
     *
     * @param danmoGalleryInterior 画廊内景
     * @return 画廊内景
     */
    @Override
    public List<DanmoGalleryInterior> selectDanmoGalleryInteriorList(DanmoGalleryInterior danmoGalleryInterior)
    {
        return danmoGalleryInteriorMapper.selectDanmoGalleryInteriorList(danmoGalleryInterior);
    }

    /**
     * 新增画廊内景
     *
     * @param danmoGalleryInterior 画廊内景
     * @return 结果
     */
    @Override
    public int insertDanmoGalleryInterior(DanmoGalleryInterior danmoGalleryInterior)
    {
        return danmoGalleryInteriorMapper.insertDanmoGalleryInterior(danmoGalleryInterior);
    }

    /**
     * 修改画廊内景
     *
     * @param danmoGalleryInterior 画廊内景
     * @return 结果
     */
    @Override
    public int updateDanmoGalleryInterior(DanmoGalleryInterior danmoGalleryInterior)
    {
        return danmoGalleryInteriorMapper.updateDanmoGalleryInterior(danmoGalleryInterior);
    }

    /**
     * 批量删除画廊内景
     *
     * @param ids 需要删除的画廊内景主键
     * @return 结果
     */
    @Override
    public int deleteDanmoGalleryInteriorByIds(Long[] ids)
    {
        return danmoGalleryInteriorMapper.deleteDanmoGalleryInteriorByIds(ids);
    }

    /**
     * 删除画廊内景信息
     *
     * @param id 画廊内景主键
     * @return 结果
     */
    @Override
    public int deleteDanmoGalleryInteriorById(Long id)
    {
        return danmoGalleryInteriorMapper.deleteDanmoGalleryInteriorById(id);
    }
}
